/* 玻璃卡片效果 */
.glass-card {
  @apply backdrop-blur-md bg-white/70 dark:bg-gray-800/40 border border-gray-100/30 dark:border-gray-700/20 shadow-md;
}

/* 卡片样式 */
.elegant-card {
  @apply bg-white dark:bg-gray-800 border border-gray-100/80 dark:border-gray-700/30 rounded-2xl shadow-sm transition-all duration-300 hover:shadow-md;
}

.elegant-card-header {
  @apply border-b border-gray-100/60 dark:border-gray-700/30 px-5 py-4;
}

.elegant-card-body {
  @apply p-5;
}

/* 增强互动元素 */
.interactive-element {
  @apply transition-all duration-300 hover:scale-[1.02] active:scale-[0.98] hover:shadow-md;
}

.hover-highlight {
  @apply transition-colors duration-200 ease-in-out;
}

.hover-highlight:hover {
  @apply bg-gray-100/60 dark:bg-gray-800/40;
}

/* 工具按钮样式 */
.tool-button {
  @apply flex items-center gap-2 px-4 py-3 text-sm font-medium rounded-xl transition-all duration-200 hover:scale-[1.02] active:scale-[0.98] border border-gray-100/80 dark:border-gray-700/30 shadow-sm hover:shadow-md;
}

.tool-button-primary {
  @apply bg-gradient-to-b from-white to-gray-50 dark:from-gray-800 dark:to-gray-800/90 text-gray-700 dark:text-gray-300;
}

.tool-button-accent {
  @apply bg-gradient-to-b from-accent-50 to-accent-100 dark:from-accent-900/30 dark:to-accent-900/20 text-accent-600 dark:text-accent-400 border-accent-200/50 dark:border-accent-800/30;
}

/* 悬停效果 */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.1);
}

.hover-scale {
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.hover-scale:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.1);
}

/* 渐变背景 */
.bg-gradient-subtle {
  @apply bg-gradient-to-br from-white to-gray-50 dark:from-gray-800 dark:to-gray-900/80;
}

.bg-gradient-primary {
  @apply bg-gradient-to-r from-gray-500/90 to-gray-600/90 dark:from-gray-600/90 dark:to-gray-700/90;
}

.bg-gradient-accent {
  @apply bg-gradient-to-r from-accent-400 to-accent-500 dark:from-accent-500 dark:to-accent-600;
}

.bg-gradient-blend {
  @apply bg-gradient-to-r from-gray-500/90 to-accent-500/90 dark:from-gray-600/90 dark:to-accent-600/90;
}

/* 阴影效果 */
.shadow-subtle {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.03);
}

.shadow-glow {
  box-shadow: 0 8px 20px rgba(100, 116, 139, 0.1);
}

.shadow-glow-accent {
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.1);
}

/* 文本渐变 */
.gradient-text {
  @apply text-transparent bg-clip-text bg-gradient-to-r from-gray-700 to-gray-900 dark:from-gray-300 dark:to-gray-100;
}

.gradient-text-accent {
  @apply text-transparent bg-clip-text bg-gradient-to-r from-accent-500 to-accent-600 dark:from-accent-400 dark:to-accent-500;
}

/* Tool icons styling */
.tool-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-icon-bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0.25;
  filter: blur(4px);
  transform: scale(0.85);
  transition: all 0.3s ease;
}

.tool-icon:hover .tool-icon-bg {
  opacity: 0.35;
  transform: scale(1);
}

.tool-icon-search .tool-icon-bg {
  background: linear-gradient(135deg, #60a5fa, #6366f1);
}

.tool-icon-browser .tool-icon-bg {
  background: linear-gradient(135deg, #c084fc, #ec4899);
}

.tool-icon-command .tool-icon-bg {
  background: linear-gradient(135deg, #4ade80, #10b8a6);
}

.tool-icon-file .tool-icon-bg {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.tool-icon-image .tool-icon-bg {
  background: linear-gradient(135deg, #f87171, #e11d48);
}

.tool-icon-browser-control .tool-icon-bg {
  background: linear-gradient(135deg, #22d3ee, #14b8a6);
}

.tool-icon-default .tool-icon-bg {
  background: linear-gradient(135deg, #9ca3af, #6b7280);
}

.tool-icon svg {
  position: relative;
  z-index: 10;
  transition: transform 0.2s ease;
}

.tool-icon:hover svg {
  transform: scale(1.1);
}

.tool-icon-search svg {
  color: #3b82f6;
}

.tool-icon-browser svg {
  color: #a855f7;
}

.tool-icon-command svg {
  color: #22c55e;
}

.tool-icon-file svg {
  color: #eab308;
}

.tool-icon-image svg {
  color: #ef4444;
}

.tool-icon-browser-control svg {
  color: #06b6d4;
}

/* Enhanced research report styling */
.research-report {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.research-report h1, 
.research-report h2, 
.research-report h3, 
.research-report h4, 
.research-report h5, 
.research-report h6 {
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

.dark .research-report h1, 
.dark .research-report h2, 
.dark .research-report h3, 
.dark .research-report h4, 
.dark .research-report h5, 
.dark .research-report h6 {
  color: #f3f4f6;
}

.research-report h1 {
  font-size: 1.875rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

.dark .research-report h1 {
  border-bottom-color: #374151;
}

.research-report h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.dark .research-report h2 {
  border-bottom-color: #374151;
}

.research-report h3 {
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.research-report h4 {
  font-size: 1.125rem;
}

.research-report p, 
.research-report li {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  color: #374151;
}

.dark .research-report p, 
.dark .research-report li {
  color: #d1d5db;
}

.research-report a {
  color: #2563eb;
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px dotted rgba(37, 99, 235, 0.3);
  padding-bottom: 1px;
}

.dark .research-report a {
  color: #60a5fa;
  border-bottom-color: rgba(96, 165, 250, 0.3);
}

.research-report a:hover {
  color: #1d4ed8;
  border-bottom-color: rgba(29, 78, 216, 0.6);
}

.dark .research-report a:hover {
  color: #93c5fd;
  border-bottom-color: rgba(147, 197, 253, 0.6);
}

.research-report table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 4px 8px rgba(0, 0, 0, 0.02);
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.dark .research-report table {
  border-color: #374151;
}

.research-report table thead tr {
  background-color: #f9fafb;
  color: #111827;
  font-weight: 600;
}

.dark .research-report table thead tr {
  background-color: #1f2937;
  color: #f3f4f6;
}

.research-report table th {
  padding: 0.875rem 1.25rem;
  vertical-align: top;
  border-bottom: 2px solid #e5e7eb;
  letter-spacing: 0.025em;
}

.dark .research-report table th {
  border-bottom-color: #374151;
}

.research-report table td {
  padding: 0.875rem 1.25rem;
  vertical-align: top;
  border-bottom: 1px solid #e5e7eb;
}

.dark .research-report table td {
  border-bottom-color: #374151;
}

.research-report table tbody tr:last-child td {
  border-bottom: none;
}

.research-report table tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

.dark .research-report table tbody tr:nth-child(even) {
  background-color: #1f2937;
}

.research-report table tbody tr:hover {
  background-color: #f3f4f6;
}

.dark .research-report table tbody tr:hover {
  background-color: #272f3d;
}

.research-report blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.75rem;
  border-left: 4px solid #e5e7eb;
  background-color: #f9fafb;
  color: #4b5563;
  font-style: italic;
  border-radius: 0 0.5rem 0.5rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.dark .research-report blockquote {
  border-left-color: #4b5563;
  background-color: #1f2937;
  color: #9ca3af;
}

.research-report pre {
  background-color: #1e293b;
  color: #e2e8f0;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  line-height: 1.6;
  tab-size: 2;
}

.research-report code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875em;
  padding: 0.25em 0.5em;
  border-radius: 0.25em;
  background-color: #f1f5f9;
  color: #0f172a;
}

.dark .research-report code {
  background-color: #1e293b;
  color: #e2e8f0;
}

.research-report ul, 
.research-report ol {
  padding-left: 1.75rem;
  margin: 1.25rem 0;
}

.research-report ul {
  list-style-type: disc;
}

.research-report ol {
  list-style-type: decimal;
}

.research-report li {
  margin-bottom: 0.75rem;
  position: relative;
}

.research-report li::marker {
  color: #6b7280;
}

.dark .research-report li::marker {
  color: #9ca3af;
}

.research-report hr {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, rgba(229, 231, 235, 0.1), rgba(229, 231, 235, 1), rgba(229, 231, 235, 0.1));
  margin: 2.5rem 0;
}

.dark .research-report hr {
  background: linear-gradient(to right, rgba(55, 65, 81, 0.1), rgba(55, 65, 81, 1), rgba(55, 65, 81, 0.1));
}

.research-report img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.75rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .research-report img {
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Enhanced scrollbars for workspace area */
.workspace-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.workspace-scrollbar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 4px;
}

.dark .workspace-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.workspace-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.dark .workspace-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}

.workspace-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.15);
}

.dark .workspace-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* New animation for plan view */
@keyframes pulse-subtle {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.animate-pulse-subtle {
  animation: pulse-subtle 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-spin-slow {
  animation: spin 3s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Enhanced step card hover */
.step-card {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.step-card:hover {
  transform: translateY(-2px);
}

/* Timeline indicators */
.timeline-marker {
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-marker:hover {
  transform: scale(1.2);
}

.timeline-marker.active {
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.timeline-track {
  background: linear-gradient(to right, rgba(229, 231, 235, 0.3), rgba(229, 231, 235, 1), rgba(229, 231, 235, 0.3));
}

.dark .timeline-track {
  background: linear-gradient(to right, rgba(75, 85, 99, 0.3), rgba(75, 85, 99, 1), rgba(75, 85, 99, 0.3));
}

.timeline-progress {
  background: linear-gradient(to right, #818cf8, #6366f1, #818cf8);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.dark .timeline-progress {
  background: linear-gradient(to right, #6366f1, #818cf8, #6366f1);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.timeline-node {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-node:hover {
  transform: scale(1.15);
}

.timeline-node-active {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.3);
}

.timeline-label {
  font-size: 0.65rem;
  line-height: 1;
  transition: all 0.2s ease;
}

.timeline-node:hover .timeline-label,
.timeline-node-active .timeline-label {
  opacity: 1;
  transform: translateY(0);
}

/* Animation for active keyframe pulse */
@keyframes timeline-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.timeline-pulse {
  animation: timeline-pulse 1.5s infinite ease-out;
}

.workspace-control-panel {
  @apply bg-white/95 dark:bg-gray-800/95 backdrop-blur-sm;
}